package com.wondertek.poms.dao.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Proxy;

import com.fasterxml.jackson.annotation.JsonInclude;

import lombok.Data;

@Data
@Entity
@Table(name = "DEFAULT_PRD_SAL")
@DynamicUpdate
@DynamicInsert
@Proxy(lazy = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DefaultPrdSal implements IRulePo {
	/**
	 * <b>Fields</b> serialVersionUID : 
	 */
	private static final long serialVersionUID = 8328428789645472641L;

	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "DEFAULT_PRD_SAL_SEQ")
	@SequenceGenerator(name = "DEFAULT_PRD_SAL_SEQ", allocationSize = 1, sequenceName = "DEFAULT_PRD_SAL_SEQ")
	private Long id;
	
	@Column(name = "PRDINFO_ID")
	private String prdInfoId; //产品包Id

	@Column(name = "FIRST_CLASS_ID")
	private String firstClassId;  //一级分类
	
	@Column(name = "SECOND_CLASS")
	private String secondClass;  //二级分类

	@Column(name = "FEE_CHARGE")
	private Integer feeCharge; //  1.免费    2.收费  3.仅支持按次
	
	@Column(name = "FIRST_PUBLISH")
	private Integer firstPublish; // 是否首发     0:是    1:否
	
	@Column(name = "FORM_TYPE")
	private Integer formType;   //  6.剧集壳  8.单集     7.子集
	
	@Column(name = "NUMBERS")
	private String  number;//单集集次
	
	@Column(name = "KEY_WORD")
	private String  keyWord; // 关键字
	
	@Column(name = "PRODUCT_ID")
	private String productId; //计费产品ID
	
	@Column(name = "PRICE")
	private String price;  //价格
	
	@Column(name = "ORDER_FLAG")
	private String orderFlag;// 0：包月  1：按次    7：免费
	
	@Column(name = "COPYRIGHT_TYPE")
	private String copyRightType;	//1-强版权，2-弱版权 
	
	@Column(name = "CONTENT_LEVEL")
	private String contentLevel;	//内容评级
	
	@Transient
	private String productCharge; //计费ID + 计费模式 + 价格
}
